package com.javajun.endofterm.common;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Description: Base Repository
 * Author: Xiong Limin
 * Date: 2020-11-26-10:23 上午
 */
@NoRepositoryBean // 该接口不纳入repository管理，所以应增加@NoRepositoryBean 注解来标识
public interface CommonRepository<T, ID extends Serializable> extends JpaRepository<T, ID>
        , PagingAndSortingRepository<T, ID> // 增加额外的方法来简化对实体的分页访问
        , JpaSpecificationExecutor<T> {



}
